//
//  ACChatAudienceLabelCell.m
//  ACLiteAVUISDK-ACLiteAVUISDK
//
//  Created by Ben on 2021/4/1.
//

#import "ACChatAudienceLabelCell.h"

@implementation ACChatAudienceLabelCell

-(void)awakeFromNib{
    [super awakeFromNib];
    self.feedbackImg.hidden = YES;
    self.titleLabel.text = @"";
    self.titleLabel.hidden = NO;
    self.titleLabel.layer.masksToBounds = YES;
    self.titleLabel.layer.cornerRadius = 16;
    self.titleLabel.layer.borderWidth = 1;
    self.titleLabel.backgroundColor = UIColorFromRGB(0xFFFFFF);
    self.titleLabel.layer.borderColor = UIColorFromRGB(0xE2E1E0).CGColor;
    self.selectImg.hidden = YES;
    
}

-(void)setSelected:(BOOL)selected{
    if (!self.feedbackImg.hidden) {
        return;
    }
    [super setSelected:selected];
    [self setChoose:selected];
}

-(void)setChoose:(BOOL)flag{
    self.selectImg.hidden = !flag;

    if (flag) {
        self.titleLabel.backgroundColor = UIColorFromRGB(0xFFEBE8);
        self.titleLabel.layer.borderColor = UIColorFromRGB(0xFF6048).CGColor;
        self.titleLabel.textColor = UIColorFromRGB(0xFF6048);
    }else{
        self.titleLabel.backgroundColor = UIColorFromRGB(0xFFFFFF);
        self.titleLabel.layer.borderColor = UIColorFromRGB(0xE2E1E0).CGColor;
        self.titleLabel.textColor = UIColorFromRGB(606266);
    }
}

@end
